package cn.edu.gzhu.workOrderManagement.service;

import cn.edu.gzhu.workOrderManagement.pojo.dto.organization.OrganizationDeleteDto;
import cn.edu.gzhu.workOrderManagement.pojo.dto.organization.OrganizationListDto;
import cn.edu.gzhu.workOrderManagement.pojo.dto.organization.OrganizationRegisterDto;
import cn.edu.gzhu.workOrderManagement.pojo.dto.organization.OrganizationUpdateDto;
import cn.edu.gzhu.workOrderManagement.pojo.entity.Organization;
import cn.edu.gzhu.workOrderManagement.pojo.vo.OrganizationListVo;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

public interface OrganizationService {
    /**
     * 注册组织
     * @param organizationRegisterDto
     * @return
     */
    Boolean saveOrganization(OrganizationRegisterDto organizationRegisterDto);

    /**
     * 按条件修改组织属性
     * @param organizationUpdateDto
     * @return
     */
    Boolean updateOrganization(OrganizationUpdateDto organizationUpdateDto);

    /**
     * 按条件分页列出组织
     * @return
     */
   IPage<OrganizationListVo> listOrganizationsByConditions(OrganizationListDto organizationListDto);

    /**
     * 根据名字删除组织
     * @param organizationDeleteDto
     * @return
     */
    Boolean deleteOrganization(OrganizationDeleteDto organizationDeleteDto);

}
